package org.springblade.modules.repair.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

/**
    * 保养模板内容
    */
@Data
public class SpecialHistoryVO {

	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 电梯id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long elevatorId;

	/**
	 * 任务id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long planId;

	/**
	 * 专项保养检查项id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long templateContentId;

	/**
	 * 维护保养项目（内容）
	 */
	private String content;

	/**
	 * 维护保养基本要求
	 */
	private String basicRequirements;

	/**
	 * 记录数据
	 */
	private Integer recordData;

	/**
	 * record_data单位
	 */
	private String recordDataUnit;

	/**
	 * record_data是否必填， 1：必填
	 */
	private Integer recordDataRequire;

	/**
	 * 拍照
	 */
	private Integer photo;

	/**
	 * photo是否必填， 1：必填
	 */
	private Integer photoRequire;

	/**
	 * 视频
	 */
	private Integer video;

	/**
	 * video是否必填， 1：必填
	 */
	private Integer videoRequire;

	/**
	 * 记录
	 */
	private Integer record;

	/**
	 * record单位
	 */
	private String recordUnit;

	/**
	 * record是否必填， 1：必填
	 */
	private Integer recordRequire;

	/**
	 * 历史检查项操作记录
	 */
	private List<MaintainSpecialRecordVO> recordVOS;

	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<String> imgUrl;

	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<String> videoUrl;

	private String recordHistory;
	private String recordDataHistory;
	private String desc;

}
